package com.wzy.pipeline;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @Auther: wzy
 * @Date: 2021/12/11/13:36
 * @Description: 处理器 - 保存模型实例到相关DB表：
 */
@Component
public class ModelInstanceSaver implements ContextHandler<InstanceBuildContext> {


    private final Logger logger = LoggerFactory.getLogger(this.getClass());


    @Override
    public boolean handle(InstanceBuildContext context) {
        logger.info("--保存模型实例到相关DB表--");


        // 假装保存模型实例


        return true;
    }
}
